package aufgabe_3;

import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;

import javax.swing.JFrame;

/**
 * Ueberwacht die Position der Maus im Frame
 * 
 * @author Schweingruber Roger
 * @date 11.12.2011
 * @version 1.0
 * 
 */
public class FrameMoveListener implements MouseMotionListener {

	@Override
	public void mouseDragged(MouseEvent e) {

	}

	@Override
	public void mouseMoved(MouseEvent e) {
		JFrame f = (JFrame) e.getSource();
		System.out.println("Componente: " + f.getName());
		System.out.println("X: " + e.getX());
		System.out.println("Y: " + e.getY());
	}

}